package interpreter.debugger.ui;

import interpreter.debugger.DebugVirtualMachine;

/**
 * Abstract superclass for all commands
 *
 * @author Kris Selbekk
 */
public abstract class Command {
    DebugVirtualMachine dvm;

    // Makes sure all commands implement a certain number of codes
    public abstract void exec( String[] args ); // Executes whatever the command is supposed to do
    public abstract void print(); // Prints out feedback to the user (if any)

    // Implementing the init function for all
    public void init( DebugVirtualMachine dvm ) {
        this.dvm = dvm;
    }
}
